<table cellspacing="1" cellpadding="4" width="100%">
    <tr align="center" valign="top">
        <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
            <div class="Block">
                
                <div class="BlockBar"><?php echo Yii::t('default', '用户列表');?></div>
                
                <?php echo $this->renderPartial('_search', arraY('model' => $model)); ?>
                <?php echo $this->renderPartial('/layouts/toolbar'); ?>
                <?php
                $this->widget('zii.widgets.grid.CGridView', array(
                    'id' => 'admin-grid',
                    'cssFile' => Yii::app()->baseurl . '/public/admin/grid.css',
                    'dataProvider' => $model->getSearch(),
                    'id' => 'ta',
                    'itemsCssClass' => 'tab',
                    'rowCssClass' => array('rows', 'rows'),
                    'columns' => array(
                        array(
                            'header' => CHtml::activeLabel($model, 'check_all'),
                            'class' => 'CCheckBoxColumn',
                            'selectableRows' => '20',
                            'checked' => 'false',
                            'checkBoxHtmlOptions' => array('name' => 'selected[]', 'class' => 'selected'),
                            'headerHtmlOptions' => array('class' => 'sub', 'width' => '3%'),
                        ),
                        array('name' => 'user_id', 'headerHtmlOptions' => array('width' => '6%')),
                        array('name' => 'user_name', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'user_email', 'headerHtmlOptions' => array('width' => '10%'), 'type' => 'html'),
                        array('name' => 'user_money', 'headerHtmlOptions' => array('width' => '10%'),'type' => 'html'),
                        array('name' => 'level', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'user_login_num', 'headerHtmlOptions' => array('width' => '9%'),'type' => 'html', ),
                        array('name' => 'user_create_user', 'headerHtmlOptions' => array('width' => '6%')),
                        array('name' => 'user_create_time','value' => 'date("Y-m-d H:i:s", $data->user_create_time)', 'headerHtmlOptions' => array('width' => '8%')),
                        array('name' => 'user_status', 'headerHtmlOptions' => array('width' => '5%')),
                        array('name' => 'user_active', 'headerHtmlOptions' => array('width' => '5%')),
                        array(
                            'header' => yii::t('default', '操作'),
                            'class' => 'CButtonColumn',
                            'viewButtonLabel' => yii::t('default', '查看详细信息'),
                            'viewButtonOptions' => array('class' => 'opendialog gridviewurl',
                            //'url'=>$this->createUrl('view',array('id'=>'$data->admin_id')),
                            ),
                            'headerHtmlOptions' => array('width' => '6%'),
                            'updateButtonLabel' => yii::t('default', '修改详细信息'),
                            'updateButtonOptions' => array('class' => 'opendialog gridviewurl',
                            ),
                        ),
                    ),
                        // 'cssFile'=>Yii::app()->request->baseUrl.'/css/base.css',
                ));
                ?>


            </div>
        </td>
    </tr>
</table>